import React from 'react';
import { connect } from 'react-redux'
class Show extends React.Component {
  render() {
    console.log(this.props.color)
    return <div className='' style={{ color: this.props.color }}>
      <h1>{this.props.count}</h1>
    </div>;
  }
}
Show = connect((state) => {
  console.log(state)
  return {
    count: state.countReducer.count,
    color: state.colorReducer.color
  }
})(Show)
export default Show